//
// Created by zhouh on 2025/8/19.
//

#include "motor.h"

/**
 * @brief   电机结构初始化
 * @param   motor 电机结构指针
 * @param   speed 电机基速
 * @param   polar 转子极对数
 */
void motor_init(motor_t *motor, unsigned int speed, unsigned char polar)
{
    motor->base_speed = speed;
    motor->polar_number = polar;
}